package com.gt.web.srv.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @Author jh
 * @Date 2024/5/16 19:47
 * @PackageName:com.gt.web.srv.domain
 * @ClassName: Advertisement
 * @Description: 轮播广告
 */
@Data
@TableName(value ="biz_ad")
public class Advertisement extends BaseAuto {
    /**
     * 广告ID
     */
    @TableId(value = "ad_id", type = IdType.AUTO)
    private Long adId;

    /**
     * 链接类型 0：文章，1：活动
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 链接内容的ID
     */
    @TableField(value = "content_id")
    private Long contentId;

    /**
     * 图片url
     */
    @TableField(value = "url")
    private String url;

    /**
     *
     */
    @TableField(value = "label")
    private String label;

    /**
     *
     */
    @TableField(value = "label_ids")
    private String labelIds;

    /**
     * 状态（0:启用 1:禁用)
     */
    @TableField(value = "status")
    private String status;

    private Long communityId;
    private String communityName;


}
